<template>
	<view>
		<v-scroll-list v-model:value="selectedValue" :options="options" :scrollHeight="200" @update:value="handleValueChange" />
	</view>
</template>

<script lang="ts" setup>
import { ref } from 'vue';

const selectedValue = ref(''); // 当前选中的值
const options = ref([
	{ value: 'option1', label: '选项1' },
	{ value: 'option2', label: '选项2' },
	{ value: 'option3', label: '选项3' },
	{ value: 'option4', label: '选项4' }
]);

function handleValueChange(value: any) {
	console.log('选中的值:', value);
}
</script>
